//Page Object
Page({
    data: {
        userInfo: {},
        collect: []
    },
    onLoad: function(options){
        
    },
    onReady: function(){
        
    },
    onShow: function(){
         // 获取缓存中的用户信息
         const userInfo = wx.getStorageSync('userinfo');
        //  获取缓存中的收藏数组
        const collect = wx.getStorageSync('collect');
         this.setData({
            userInfo,
            collect
         })
    },
    onHide: function(){

    },
    onUnload: function(){

    },
    onPullDownRefresh: function(){

    },
    onReachBottom: function(){

    },
    onShareAppMessage: function(){

    },
    onPageScroll: function(){

    },
    //item(index,pagePath,text)
    onTabItemTap:function(item){

    },

   
});